package com.sgg.gulimall_product.openFeign;

import com.sgg.gulimall_common.api.Result;
import com.sgg.gulimall_common.to.ProductUPTo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

@FeignClient("search")
public interface ProductFeignService {

    @PostMapping("/gulimall_search/elasticSearch/save")
    public Result elasticSearchIndex(@RequestBody List<ProductUPTo> productUPToList);
}
